package com.hxs.hxsserver.domain.entity.device;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author liuchuan
 * @create 2024/9/26
 */
@Data
@TableName("devicecommandloghistory")
public class DeviceCommandLogHistory {
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 指令内容
     */
    private String command;

    /**
     * 设备ip
     */
    private String deviceIp;

    /**
     * 设备id
     */
    private Integer deviceId;

    /**
     * 设备硬件地址码，长度十位
     */
    private String deviceHardwareAddr;

    private Date createTime;

    public DeviceCommandLogHistory(String command, String deviceIp, String deviceHardwareAddr) {
        this.command = command;
        this.deviceIp = deviceIp;
        this.deviceHardwareAddr = deviceHardwareAddr;
    }

    public DeviceCommandLogHistory() {
    }
}